package com.cn.shardingmybatis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: chenyuncong
 * @Date: 2020/3/23 10:24
 */
@Data
@TableName("t_user")
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name; //名字

    private Integer age; //年龄

    private String email;  //电子邮箱

    private String phone;  //电话号码

    private Integer createTime; // 20200323103817 时间准确到秒

}
